package com.webshop.database;

import com.webshop.Dao.PageDao;
import com.webshop.domain.Items;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public class DBTest {
    public static List<Items> items = new ArrayList<Items>();
    public static void main(String[] args) {
        String iclass = Items.allclass.get(Integer.parseInt("1"));
        System.out.println(iclass);
        int lenth = new PageDao().getItems(iclass).size();
        System.out.println(lenth);
    }
}
